package com.xw.qxypt.modules.socket;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 *
 * @Class 项目启动后运行此方法:CommandLineRunner实现
 */
@Component
@Order(value = 1)
public class StartSocketServer implements CommandLineRunner {
    @Autowired
    private CollectorSocketServer collectorSocketServer;
    @Override
    public void run(String... args) throws Exception {
        System.err.println("___________采集任务启动____________");
        collectorSocketServer.init();

    }
}
